/*  ISCII  INDEX
   161-163: 0-2 :{z,M,H}
   164-178: 3-17: Vowels
   179-216:18-55: Consonants
     217  :  56 : Invisible(Consonant)
   218-231:57-70: Matraas
     232  :  71 : Halant_marker
     233  :  72 : Nukta
     234  :  73 : Khadii_paii
   235-238:74-77: Reserved_for_future_extensions
     239  :  78 : Attribute_code
     240  :  79 : Extension_code
   241-250:80-89: Numerals
   251-254:90-93: Reserved_for_future_extensions
*/
/* This function checks for the presence of an ASCII alphabet in the input string*/
#include <stdio.h>
#include <string.h>
#define DEBUG 0
int found_ascii_alphabet(unsigned char input[]){
int i,j,k=0,l;
int ascii_alphabet; // A flag
unsigned char c,next_c;
ascii_alphabet = 0;
l=strlen(input);
for(i=0;i<l;i++){
if((input[i]>64 && input[i] < 91) || (input[i]>96 && input[i] < 123)) {ascii_alphabet=1; break;}
}
if(ascii_alphabet == 1) return(1);
return(0);
}
/*
 main(){
unsigned char input1[10000];
int c,i=0;
while((c=getchar())!=EOF) input1[i++]=c;
input1[i]='\0';
printf("FOUND_ASCII_ALPHABET=%d\n",found_ascii_alphabet(input1));
}
*/
